package com.guoxue.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.guoxue.dao.IAdvertisementDao;
import com.guoxue.domain.AdvertisementVo;
import com.guoxue.service.IAdvertisementService;

@Service
public class AdvertisementServiceImpl implements IAdvertisementService{
	
	@Resource
	private IAdvertisementDao  advertisementDao;

	@Override
	public List<AdvertisementVo> getAdvertisementList() {
		return advertisementDao.getAdvertisementList();
	}

	@Override
	public void saveAdvertisement(AdvertisementVo a) {
		advertisementDao.saveAdvertisement(a);
	}

	@Override
	public void deleteAdvertisement(Integer id) {
		advertisementDao.deleteAdvertisement(id);
	}

	@Override
	public List<AdvertisementVo> getNotExpiredAdvertisementList() {
		return advertisementDao.getNotExpiredAdvertisementList();
	}

}
